<table class="table table-th-block table-hover">                                
                                <thead>
                                    <tr>
                                        <th style="width: 30px;">编号</th>
                                        <th>头像</th>
                                        <th>用户名</th>
                                        <th>密码</th>                                        
                                        <th>姓名</th>                                     
                                        <th>手机号</th>
                                        <th>邮箱</th>
                                        <th>职位</th>
                                        <th>加入时间</th>
                                        <th>操作</th>
                                    </tr>                           
                                </thead>
                                <tbody>
                                <tbody>
                                    <foreach name="datas" item="value">                                 
                                        <tr>
                                            <td>{$value.audience_id}</td>
                                            <td><img src="/teamin/{$value.audience_portrait}" class="avatar img-circle" alt="avatar"></td>                                            
                                            <td>{$value.audience_username}</td>
                                            <td>{$value.audience_pwd}</td>
                                            <td>{$value.audience_name}</td>
                                            <td>{$value.audience_tel}</td>
                                            <td>{$value.audience_email}</td>
                                            <td>{$value.audience_position}</td>
                                            <td>{$value.time_insert}</td>
                                            <td style="width:90px;">
                                                <span class="label label-danger save" name="{$value.audience_id}" style="cursor:pointer">
                                                    <img src="__PUBLIC__/Images/save.png" />
                                                </span>
                                                |
                                                <span class="label label-danger delete" id="{$value.audience_id}" name="{$value.audience_portrait}"  style="cursor:pointer">
                                                    <img src="__PUBLIC__/Images/delete.png" />
                                                </span>
                                            </td>
                                        </tr>
                                    </foreach>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="10"><ul class="pagination success">{$rs.show}</ul></td>
                                    </tr>
                                </tfoot>
                            </table>
                            
<script type="text/javascript">
$(".current").css({background:"#8CC152",color:"white"});
    $(".save").click(function(){
        var id = $(this).attr("name");        
        $.ajax({
            url:"__URL__/to_update",
            data:{"audience_id":id},
            type:"get",
            success:function(data){
                $(".div1").css({display:"none"});
                $("#hl").html(data);
            }
        });
    });

     $(".delete").on("click",function(){
        var id = $(this).attr("id");
        var photo = $(this).attr("name");
        if(confirm("确认删除?")){
        $.ajax({
            url:"__URL__/delAct",
            data:{"audience_id":id,"audience_portrait":photo},
            type:"post",
            success:function(data){
               window.location="__SELF__";

            }
        })
        }
     });



</script>